/**
 * @(#) .java
 * Copyright (C) 2008 T.S.Yo tingshuo.yo@gmail.com
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 */
package entities;

/**
 * @author tsyo
 *
 */
public class Character extends Entity {
	// Character attributes
	private String sex;
	private int age;
	private String occupation;
	private float height;
	private float weight;
	private String race;
	private String personality;

	// Default attributes
	public final String DEFAULT_SEX = "unknown";
	public final int DEFAULT_AGE = 10;
	public final String DEFAULT_OCCUPATION = "unknown";
	public final float DEFAULT_HEIGHT = 170.0f;
	public final float DEFAULT_WEIGHT = 60.0f;
	public final String DEFAULT_RACE = "unknown";
	public final String DEFAULT_PERSONALITY = "unknown";
	
	/**
	 *  Constructor
	 */
	public Character(){
		super();
		setName("");
		setType("Character");
		setDescription("New character.");
		this.sex = DEFAULT_SEX;
		this.age = DEFAULT_AGE;
		this.occupation = DEFAULT_OCCUPATION;
		this.height = DEFAULT_HEIGHT;
		this.weight = DEFAULT_WEIGHT;
		this.race = DEFAULT_RACE;
		this.personality = DEFAULT_PERSONALITY;
	}

	public String characterSummary(){
		String summary = super.getSummary();
		summary +=  "Sex: " + this.sex + "\n" +
					"Age: " + this.age + "\n" +
					"Occupation: " + this.occupation + "\n" +
					"Height: " + this.height + "\n" +
					"Weight: " + this.weight + "\n" +
					"Race: " + this.race + "\n" +
					"Personality: " + this.personality + "\n";
		return summary;
	}
}
